# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         demo7_02
# Description:  创建函数
# Author:       asus
# Date:         2019/3/11
#-------------------------------------------------------------------------------


def fibs(n):
    result = [0,1]
    for i in range(n-2):
        result.append(result[-2] + result[-1])
    return result
while True:
    value = input("请输入一个整数：")
    if value == "exit":
        break;
    n = int(value)
    print(fibs(n))